﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<MySkiPatrolSite.ArticleSvc.ArticleList>" %>



<% if (ViewData["Articles"] != null)
   { %>
       
<div class="article">
    <%foreach (MySkiPatrolSite.ArticleSvc.Article item in ((MySkiPatrolSite.ArticleSvc.ArticleList)ViewData["Articles"]).Articles)
      { %>


      <div class="article">
      
      <% 
          if ((Session["MEMBER"] != null) && (MySkiPatrolSite.Security.IsInRole("EditArticle", (MySkiPatrolSite.MembershipSvc.Member)Session["MEMBER"])))
         { %>
      <%: MySkiPatrolSite.HtmlHelpers.ActionImage(Html, @"../Article/Edit/" + item.ID, null, "~/Images/DryIcons/Shine/png/24x24/news_edit.png", "Edit This Item", "window_edit_icon")%>
      <%: MySkiPatrolSite.HtmlHelpers.ActionImage(Html, @"../Article/Delete/" + item.ID, null, "~/Images/DryIcons/Shine/png/24x24/news_delete.png", "Delete This Item", "window_delete_icon")%>
            <%} %>
            
        <span id="Span1"><h2><%: item.Title%></h2></span>

      <div class="article_body"><%=item.Body%>
      </div></div>
      <%} %>
</div>
<%} %>